package com.tac.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tac.common.result.Result;
import com.tac.pojo.Hotel;
import com.tac.pojo.vo.HotelVo;

import javax.xml.crypto.Data;
import java.util.List;

public interface HotelService extends IService<Hotel> {

    /**
     * 查看所有酒店
     * @return
     */
    public Result<List<Hotel>> seleceAll();

    /**
     * 查看酒店详情
     * @param hid
     * @param uid
     * @return
     */
    public Result<HotelVo> selectById(Long hid, Long uid);
    /**
     * 收藏酒店
     * @param hid
     * @param uid
     * @return
     */
    public Result collection(Long hid, Long uid);
    /**
     * 取消收藏
     * @param hid
     * @param uid
     * @return
     */
    public Result deleteByCollection(Long hid, Long uid);
    /**
     * 查看所有收藏的酒店
     * @param uid
     * @return
     */
    public Result<List<Hotel>> selectBycollection(Long uid);


    /**
     * 按创建时间搜索酒店
     * @param page
     * @param pagesize
     * @return
     */
    public Result<Page<Hotel>> selectByTime(Long page, Long pagesize, String startTime, String endTime);
}
